<?php

$locale = isset($_GET['locale']) ? trim($_GET['locale']) : "";
if ($locale == "") {
    $locale = isset($_SESSION['locale']) ? trim($_SESSION['locale']) : "en_US";
}

$locale_file = dirname(__FILE__) . "/../ini/" . $locale . ".ini";
if (!file_exists($locale_file)) {
    $locale_file = dirname(__FILE__) . "/../ini/en_US.ini";
    $_SESSION['locale'] = "en_US";
} else {
    $_SESSION['locale'] = $locale;
}

$op = parse_ini_file($locale_file, true);

$title = $op['index']['title'];
$page_title = $op['index']['page_title'];
$sub_title = $op['index']['sub_title'];
$username_placeholder = $op['index']['username_placeholder'];
$password_placeholder = $op['index']['password_placeholder'];
$remember = $op['index']['remember'];
$login = $op['index']['login'];
$copyright = $op['index']['copyright'];
$logout = $op['index']['logout'];

$welcome = $op['main']['welcome'];
$teacher_from = $op['main']['teacher_from'];
$click_active_msg = $op['main']['click_active_msg'];
$class_name = $op['main']['class_name'];
$class_vol = $op['main']['class_vol'];
$class_code = $op['main']['class_code'];

$no_class_msg = $op['main']['no_class_msg'];
$class_name_placeholder = $op['main']['class_name_placeholder'];
$add_new_class = $op['main']['add_new_class'];

$select_lesson_msg = $op['main']['select_lesson_msg'];

$vol1 = $op['main']['vol1'];
$vol2 = $op['main']['vol2'];
$vol3 = $op['main']['vol3'];
$vol4 = $op['main']['vol4'];
$vol5 = $op['main']['vol5'];
$vol6 = $op['main']['vol6'];

$close_button = $op['main']['close_button'];
$submit_button = $op['main']['submit_button'];


$title_back = $op['class']['title_back'];
$class_name_msg = $op['class']['class_name'];
$class_code_msg = $op['class']['class_code'];
$cs_vol_no = $op['class']['cs_vol_no'];
$cs_vol = $op['class']['cs_vol'];
$students = $op['class']['students'];
$create_time = $op['class']['create_time'];
$statistics = $op['class']['statistics'];
$print = $op['class']['print'];
$lesson1 = $op['class']['lesson1'];
$lesson2 = $op['class']['lesson2'];
$lesson3 = $op['class']['lesson3'];
$lesson4 = $op['class']['lesson4'];
$lesson5 = $op['class']['lesson5'];
$lesson6 = $op['class']['lesson6'];
$lesson7 = $op['class']['lesson7'];
$lesson8 = $op['class']['lesson8'];
$lesson9 = $op['class']['lesson9'];
$lesson10 = $op['class']['lesson10'];
$writing_practise = $op['class']['writing_practise'];
$simulate_test = $op['class']['simulate_test'];
$list = $op['class']['list'];
$content = $op['class']['content'];
$full_screen = $op['class']['full_screen'];
$title_number = $op['class']['title_number'];
$accuracy = $op['class']['accuracy'];
$subject = $op['class']['subject'];
$choice = $op['class']['choice'];
$correct_answer = $op['class']['correct_answer'];
$nickname = $op['class']['nickname'];
$score = $op['class']['score'];
$finish_time = $op['class']['finish_time'];
$show_button = $op['class']['show_button'];

$register = $op['admin']['register'];
$admin_title = $op['admin']['admin_title'];

$teacher_registration = $op['register']['teacher_registration'];
$confirm_password_placeholder = $op['register']['confirm_password_placeholder'];
$nickname_placeholder = $op['register']['nickname_placeholder'];
$email_placeholder = $op['register']['email_placeholder'];

//interface_msg
$un_login = $op['interface_msg']['un_login'];
$type_error = $op['interface_msg']['type_error'];
$type_none = $op['interface_msg']['type_none'];
$active_success = $op['interface_msg']['active_success'];
$read_error = $op['interface_msg']['read_error'];
$validate_expire = $op['interface_msg']['validate_expire'];
$delete_data_error = $op['interface_msg']['delete_data_error'];
$no_privileges_admin = $op['interface_msg']['no_privileges_admin'];
$login_success = $op['interface_msg']['login_success'];
$username_password_error = $op['interface_msg']['username_password_error'];
$username_exist = $op['interface_msg']['username_exist'];
$email_exist = $op['interface_msg']['email_exist'];
$insert_data_error = $op['interface_msg']['insert_data_error'];
$class_not_exist = $op['interface_msg']['class_not_exist'];
$update_fail = $op['interface_msg']['update_fail'];
$approve_fail = $op['interface_msg']['approve_fail'];
$student_not_exist = $op['interface_msg']['student_not_exist'];
$refuse_fail = $op['interface_msg']['refuse_fail'];
$can_not_find_class = $op['interface_msg']['can_not_find_class'];
$code_query_error = $op['interface_msg']['code_query_error'];
$class_code_invalid = $op['interface_msg']['class_code_invalid'];
$class_not_in_school = $op['interface_msg']['class_not_in_school'];
$class_applying = $op['interface_msg']['class_applying'];
$already_in_class = $op['interface_msg']['already_in_class'];
$write_data_error = $op['interface_msg']['write_data_error'];
$can_not_remove_self = $op['interface_msg']['can_not_remove_self'];
$no_delete_privilege = $op['interface_msg']['no_delete_privilege'];
$no_agree_privilege = $op['interface_msg']['no_agree_privilege'];
$you_are_class_teacher = $op['interface_msg']['you_are_class_teacher'];
$no_transfer_privilege = $op['interface_msg']['no_transfer_privilege'];
$remove_error = $op['interface_msg']['remove_error'];
$no_remove_privilege = $op['interface_msg']['no_remove_privilege'];
$no_modify_privilege = $op['interface_msg']['no_modify_privilege'];
$not_active_cs = $op['interface_msg']['not_active_cs'];
$cs_invalid = $op['interface_msg']['cs_invalid'];
$length_invalid = $op['interface_msg']['length_invalid'];
$no_modify_name_privilege = $op['interface_msg']['no_modify_name_privilege'];
$class_insert_error = $op['interface_msg']['class_insert_error'];
$no_school = $op['interface_msg']['no_school'];
$can_not_rejoin = $op['interface_msg']['can_not_rejoin'];
$already_join = $op['interface_msg']['already_join'];
$insert_wrong = $op['interface_msg']['insert_wrong'];
$update_wrong = $op['interface_msg']['update_wrong'];
$ccode_wrong = $op['interface_msg']['ccode_wrong'];
$query_error = $op['interface_msg']['query_error'];
$student_join_class = $op['interface_msg']['student_join_class'];
$student_not_found = $op['interface_msg']['student_not_found'];
$unbind = $op['interface_msg']['unbind'];
$active_not_bind = $op['interface_msg']['active_not_bind'];
$no_active_code = $op['interface_msg']['no_active_code'];
$yct_unavailable = $op['interface_msg']['yct_unavailable'];
$select_wrong = $op['interface_msg']['select_wrong'];
$mac_bind_already = $op['interface_msg']['mac_bind_already'];
$key_used_already = $op['interface_msg']['key_used_already'];
$activation_code_not_available = $op['interface_msg']['activation_code_not_available'];
$active_error = $op['interface_msg']['active_error'];
$code_actived = $op['interface_msg']['code_actived'];
$code_expired = $op['interface_msg']['code_expired'];
$expire_process_fail = $op['interface_msg']['expire_process_fail'];
$sid_not_free = $op['interface_msg']['sid_not_free'];
$register_wrong = $op['interface_msg']['register_wrong'];
$head_nick_wrong = $op['interface_msg']['head_nick_wrong'];
$code_no_exist = $op['interface_msg']['code_no_exist'];
$can_not_active_cs = $op['interface_msg']['can_not_active_cs'];
$no_key_for_cs = $op['interface_msg']['no_key_for_cs'];
$code_not_for_cs = $op['interface_msg']['code_not_for_cs'];
?>